IdeaBlade DevForce 2010 Help Reference
ForceIdFixupAsync(Action<BaseOperation>,Object) Method
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class > ForceIdFixupAsync Method : ForceIdFixupAsync(Action<BaseOperation>,Object) Method



callback
Callback invoked when asynchronous operation completes
userState
Token identifying the asynchronous operation
Perform an asynchronous ForceIdFixup operation.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ForceIdFixupAsync( _
   ByVal callback As Action(Of BaseOperation), _
   ByVal userState As Object _
) As BaseOperation
Visual Basic (Usage)Copy Code
Dim instance As EntityManager
Dim callback As Action(Of BaseOperation)
Dim userState As Object
Dim value As BaseOperation
 
value = instance.ForceIdFixupAsync(callback, userState)
C# 
public BaseOperation ForceIdFixupAsync( 
   Action<BaseOperation> callback,
   object userState
)
C++/CLI 
public:
BaseOperation^ ForceIdFixupAsync( 
   Action<BaseOperation^>^ callback,
   Object^ userState
) 

Parameters

callback
Callback invoked when asynchronous operation completes
userState
Token identifying the asynchronous operation

Remarks

Provide a callback if you want to be notified when the operation completes. Use the userState to uniquely identify this call. You can cancel a pending asynchronous call using BaseOperation.Cancel. Auto-generated temporary IDs are automatically "fixed up" during save processing. You can force that fixup to be done prior to a save by calling this method. An exception will be thrown if any entity properties whose schema definition has a StoreGeneratedPattern="identity" attribute are pending fixup, since these IDs can only be assigned during a save operation.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.